/*
 * 百度在线网络技术（北京）有限公司拥有本软件版权2021并保留所有权利。
 * Copyright 2021, Baidu.com,Inc 2:Baidu Online Network Technology (Beijing) Co.,Ltd,
 * All rights reserved.
 */

package com.azdebugit.moshi.test.learn.factory.method.t1.service2;

import com.azdebugit.moshi.test.learn.factory.method.t1.inter.AbstractFactory;
import com.azdebugit.moshi.test.learn.factory.method.t1.inter.Product;
import com.azdebugit.moshi.test.learn.factory.method.t1.service1.ConcreteProduct1;

//具体工厂1：实现了厂品的生成方法
public class ConcreteFactory1 implements AbstractFactory {
    public Product newProduct() {
        System.out.println("具体工厂1生成-->具体产品1...");
        return new ConcreteProduct1();
    }
}